package spherical_tessellation_test;

import javax.vecmath.Point3f;
import javax.vecmath.Vector3f;

public class CameraModel {

	private static CameraModel instance = null;
	
	private Point3f position;
	private Vector3f facing, up;
	
	private CameraModel() {
		this.position = new Point3f(0.0f, 0.0f, 0.0f);
		this.facing = new Vector3f(0.0f, 0.0f, -1.0f);
		this.up = new Vector3f(0.0f, 1.0f, 0.0f);
	}
	
	public static CameraModel getInstance() {
		if(instance == null) {
			instance = new CameraModel();
		}
		return instance;
	}

	public Point3f getPosition() {
		return position;
	}

	public Vector3f getFacing() {
		return facing;
	}

	public Vector3f getUp() {
		return up;
	}

	public void setPosition(Point3f position) {
		this.position = position;
	}

	public void setFacing(Vector3f facing) {
		this.facing = facing;
	}

	public void setUp(Vector3f up) {
		this.up = up;
	}
	
}

